<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<PersonalAlbumModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

    <h2><%=Model.Localize("Blog.create") %></h2>
    <%using (Html.BeginForm())
      { %>
      <%--Html. AntiForgeryToken() --%>
    <span>
        <label for="Title"><%=Model.Localize("Blog.Title")%></label>
        <%=Html.TextBox("Title")%>
         <%= Html.ValidationMessage("Title", "*") %>
        </span>
  
    <span>
        <label for="Author"><%=Model.Localize("Blog.Author")%></label>
        <%=Html.TextBox("Author", Model.User.Name)%>
         <%= Html.ValidationMessage("Author", "*")%>
        </span>
  
    <span>
        <label for="DateCreated"><%=Model.Localize("Blog.Date")%></label>
        <%=Html.TextBox("DateCreated", DateTime.Now.ToString("yyyy-MM-dd HH:mm"))%>
         <%= Html.ValidationMessage("DateCreated", "*") %>
    </span>
  
    <div>
    <%=Html.TextArea("Content")%>
    </div>
    <span>
        <label for=""><%=Model.Localize("Blog.Tags")%></label>
        <%=Html.TextBox("Tags")%>
         <%= Html.ValidationMessage("Tags", "*")%>
    </span>
    <br />
    <span>
        <label for="Approved"><%=Model.Localize("Blog.Approved")%></label>
        <%=Html.CheckBox("Approved",true) %>
    </span>
    <input type="submit" value="<%=Model.Localize("Blog.Submit") %>" />
    <%} %>
    
    <script src="<%=Html.AbsolutePath("HtmlEditor/fckeditor.js") %>" type="text/javascript"></script>
    <script type="text/javascript">
window.onload = function()
{
    var oFCKeditor = new FCKeditor('Content');
oFCKeditor.BasePath = '<%=Html.AbsolutePath("HtmlEditor") %>/' ;
oFCKeditor.ReplaceTextarea() ;
}
</script>

</asp:Content>
